package router

import (
	"getaway/handler/api"
	"github.com/gin-gonic/gin"
)

func Driver(v1 *gin.RouterGroup) {
	driver := v1.Group("driver")
	{
		driver.POST("createDriver", api.CreateDriver)                             //创建司机
		driver.POST("updateDriver", api.UpdateDriver)                             //更新司机信息
		driver.POST("bindVehicle", api.VehicleBind)                               //绑定车辆
		driver.POST("driverIdImgCreate", api.DriverIdImgCreate)                   //创建司机身份证图片
		driver.POST("driverTrainingCourseCreate", api.DriverTrainingCourseCreate) //创建司机培训课程
		driver.POST("bankAccountCreate", api.BankAccountCreate)                   //创建司机银行账号
		driver.GET("driverList", api.DriverList)                                  //获取司机详情列表
		driver.GET("driverLists", api.DriverLists)                                // 获取司机列表
		driver.GET("driverRevenue", api.DriverRevenue)                            // 获取司机营业额
		driver.GET("carpoolAddressList", api.DriverCarpoolAddressList)            // 司机顺风车地址列表
		driver.POST("loc", api.DriverLoc)                                         // 司机位置上报
	}
}
